package cn.edu.scau.cmi.chenruilin.composite.consistent;

import java.util.ArrayList;

public class ConsistentLeaf extends ConsistentComponent{
	private String name;
	
	@Override
	public ConsistentComponent getParent() {
		return this.parent;
	}

	
	@Override
	public ConsistentComponent addChild(ConsistentComponent child) {
		return this;
	}

	@Override
	public ConsistentComponent deleteChild(ConsistentComponent child) {
		return this;
	}

	@Override
	public ArrayList<ConsistentComponent> getChildren() {
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
